//引入axios实例
import sphRequest from '@/request/sph'
import zhaiRequest from '@/request/zhai'

// 首页三级分类
export const getBaseCategoryList = function () {
  return sphRequest('/product/getBaseCategoryList')
}

// 商品排行
export const getRankList = function () {
  return zhaiRequest('/rankList')
}

// 商品排行
export const getGoodsList = function (type) {
  return zhaiRequest('/goodsList' + type)
}

//猜你喜欢
export const getLikeList = function (pageNum, pageSize) {
  return zhaiRequest('/LikeList', {
    params: {
      pageNum,
      pageSize,
    },
  })
}

//楼层
export const getFloorList = function () {
  return zhaiRequest('/floorList')
}

//搜索商品
export const postSearchList = function (body) {
  return sphRequest.post('/list', body)
}
